<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .box{
        width: 400px;
        height: 80px;
        border: 1px solid gold;
        margin: 10px auto;
    }
    .one{
        width: 60px;
        height: 60px;
        background-color: #90ee90;
        float: left;
        margin: 10px;
    }
    .tow{
        width: 60px;
        height: 60px;
        background-color: pink;
        float: right;
        margin: 10px;
    }
</style>
<body>
    <div class="clearfix box">
        <div class="one"></div>
        <div class="tow"></div>
    </div>
</body>
</html>